<?php /* @var $this Controller */ ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/styles.css" />
	<?php 
		Yii::app()->bootstrap->register(); 
		Yii::app()->getClientScript()->registerCoreScript( 'jquery.ui' );
		$cs = Yii::app()->getClientScript();
		$cssCoreUrl = $cs->getCoreScriptUrl();
		$cs->registerCssFile($cssCoreUrl . '/jui/css/base/jquery-ui.css'); 
	?>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/own.css" />
	<script> var base_url = '<?php echo Yii::app()->baseUrl; ?>'; </script>
	<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/addon/js_modul/home/main.js"></script>
</head>
<body>

<?php $this->widget('bootstrap.widgets.TbNavbar',array(
    'items'=>array(
        array(
            'class'=>'bootstrap.widgets.TbMenu',
            'items'=>array(
                array('label'=>'Social Network', 'url'=>array('/site/index')),
                array('label'=>'Handicap Table', 'url'=>array('/site/page', 'view'=>'about')),
                array('label'=>'Golf Course', 'url'=>array('golfCourse')),
                array('label'=>'Online Booking', 'url'=>array('/onlineBooking'), 'visible'=>Yii::app()->user->isGuest),
                array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
            ),
        ),
    ),
)); ?>

<div class="container" id="page">

	<?php if(isset($this->breadcrumbs)):?>
		<?php $this->widget('bootstrap.widgets.TbBreadcrumbs', array(
			'links'=>$this->breadcrumbs,
		)); ?><!-- breadcrumbs -->
	<?php endif?>
	<?php echo $content; ?>
	
	

	<div class="clear"></div>

</div><!-- page -->

</body>
</html>
